package com.wzy.pipeline2.processor;

import com.wzy.pipeline2.model.FlowResult;
import com.wzy.pipeline2.NormalValve;
import com.wzy.pipeline2.model.PipeLineContext;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @Auther: wzy
 * @Date: 2021/12/11/16:36
 * @Description: Validator 订单-临时订单前置参数校验
 */
@Slf4j
@Component
public class Processor extends NormalValve {
    @Override
    public FlowResult invoke(PipeLineContext pipeLineContext) {
        pipeLineContext.put("processor", "3");
        return processContinue(pipeLineContext);
    }
}
